import {createApp} from 'vue'
import vant from 'vant'
import './style.css'
// 2. 引入组件样式
import 'vant/lib/index.css';
import App from './App.vue'

// 导入tailwind css
import "./styles/Tailwind.css"

// import router
import router from './router/index';

// import piain
import {createPinia} from 'pinia';
import { createPersistedState } from "pinia-plugin-persistedstate"

const pinia = createPinia();
pinia.use(createPersistedState({
    serializer:{   // 指定参数序列化器
        serialize: JSON.stringify,
        deserialize: JSON.parse
    }
}))

import plugin from "./plugin"

createApp(App).use(vant).use(router).use(plugin).use(pinia).mount('#app')
